<template>
    <div>
        <p>我是son组件</p>
    </div>
</template>

<script>
import { inject } from "vue"
export default {
    setup() {
        let score = inject('data')
        console.log(score)
    }
};
</script>

<style scoped></style>
